package com.bootdo.system.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.system.dao.NewsTypeDao;
import com.bootdo.system.domain.NewsTypeDO;
import com.bootdo.system.service.NewsTypeService;



@Service
public class NewsTypeServiceImpl implements NewsTypeService {
	@Autowired
	private NewsTypeDao newsTypeDao;
	
	@Override
	public NewsTypeDO get(Long id){
		return newsTypeDao.get(id);
	}
	
	@Override
	public List<NewsTypeDO> list(Map<String, Object> map){
		return newsTypeDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return newsTypeDao.count(map);
	}
	
	@Override
	public int save(NewsTypeDO newsType){
		return newsTypeDao.save(newsType);
	}
	
	@Override
	public int update(NewsTypeDO newsType){
		return newsTypeDao.update(newsType);
	}
	
	@Override
	public int remove(Long id){
		return newsTypeDao.remove(id);
	}
	
	@Override
	public int batchRemove(Long[] ids){
		return newsTypeDao.batchRemove(ids);
	}
	
}
